import 'package:flutter/services.dart';

const MethodChannel _kChannel = MethodChannel('com.ahj/txFaceshibie');

class TxRenshibieUtils{
  /**
   * 开启人脸识别
   * bizSeqNo 业务流水号
   * transactionTime 时间
   * orderNo 合作方订单号
   * faceId faceId
   * nonce 随机数
   * userid 用户id
   * sign 签名
   */
  static Future<String>  startShibie(String bizSeqNo,String transactionTime,String orderNo,String faceId,String nonce,String userid,String sign) async {

   var map={
     "bizSeqNo":bizSeqNo,
     "transactionTime":transactionTime,
     "orderNo":orderNo,
     "faceId":faceId,
     "nonce":nonce,
     "userid":userid,
     "sign":sign
   };

   return await _kChannel.invokeMethod('FaceShiBie', map);
  }
}